package com.rtx.job;

import com.rtx.job.handler.EdiJobHandler;

import java.util.HashMap;
import java.util.Map;

public class Test {

    public static void main(String[] args) {
        EdiJobHandler handler = new EdiJobHandler();
        Map<String,Object> data = new HashMap<>();
        data.put("orderkey","123");
        data.put("type","11");
        String template = "{\"source\":{\"orderkey\":\"orderkey\",\"type\":\"type\"},\"result\":{\"code\":\"code\",\"msg\":\"msg\",\"target\":\"200\"}}";
        String result = "{\"code\":\"200\",\"msg\":\"成功\"}";

        Map<String, Object> map = handler.analysisResults(data, template, result);

        System.out.println(map);
    }
}
